//
//  ios_StrokeFill.cpp
//  StrokeDemo
//
//  Created by wankang on 2/13/15.
//  Copyright (c) 2015 wankang. All rights reserved.
//

#include "ios_StrokeFill.h"
#include "utils.h"
#include "StrokeFiller.h"

void* sf_createFiller(void)
{
    return createFiller();
}

int sf_setMaxSize(void *hFiller, int nMaxX, int nMaxY)
{
    return setMaxSize(hFiller, nMaxX, nMaxY);
}

int sf_setData(void *hFiller, const short *pnContour, int nCount1, const short *pnMidline, int nCount2)
{
    return setData(hFiller, pnContour, nCount1, pnMidline, nCount2);
}

int sf_setGuide(void *hFiller, const short *pnGuide, int nGuide)
{
    return setGuide(hFiller, pnGuide, nGuide);
}

int sf_setStartXY(void *hFiller, short x, short y)
{
    return setStartXY(hFiller, x, y);
}

int sf_getPoints(void *hFiller, short *pnBuf, int nBuf)
{
    return getPoints(hFiller, pnBuf, nBuf);
}

int sf_destroyFiller(void *hFiller)
{
    return destroyFiller(hFiller);
}

#ifdef PROFILE
#include <stdarg.h>
#include <Foundation/Foundation.h>
static char s_buf[1024];
void DbgPrintf(const char *szFmt, ...)
{
    va_list argList;
    va_start(argList, szFmt);
    vsnprintf(s_buf, 1024, szFmt, argList);
    va_end(argList);
    NSLog(s_buf);
}
#endif  // PROFILE
